// 2018-06-27
// 13:37:40@chazi@qq81938728

var plugin=plugin||{};plugin.PluginManager=cc.Class.extend({_pluginsMap:null,ctor:function(){this._pluginsMap={};},unloadPlugin:function(name){if(name==null||name.length==0)return;if(this._pluginsMap[name]){delete this._pluginsMap[name];}},loadPlugin:function(name){if(name==null||name.length==0)return null;var tmpPlugin;if(this._pluginsMap[name]){tmpPlugin=this._pluginsMap[name];}
else{tmpPlugin=plugin.PluginFactory.getInstance().createPlugin(name);this._pluginsMap[name]=tmpPlugin;}
return tmpPlugin;}});plugin.PluginManager.getInstance=function(){if(!this._instance){this._instance=new plugin.PluginManager();}
return this._instance;};plugin.PluginManager.end=function(){if(this._instance!=null){delete this._instance;}};